﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Domain.Entities.Auditing;
using Volo.Abp.MultiTenancy;
using Volo.Abp;
using Microsoft.EntityFrameworkCore;
using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel.DataAnnotations;

namespace Vouchers
{
    [Comment("退货单")]
    [Table("t_rejectstockvoucher")]
    [Index(nameof(VoucherCode))]
    public class RejectStockVoucher : VoucherBase
    {
        public RejectStockVoucher(Guid keyId)

        {
            this.Id = keyId;
        }

        public RejectStockVoucher()
        {

        }


        [Comment("供应商ID")]
        public Guid? SupplierId { get; set; }

        [MaxLength(50)]
        [Comment("供应商名称")]
        public string SupplierName { get; set; }

        [Comment("发货仓库Id")]
        public Guid? WarehouseId { get; set; }

        [MaxLength(50)]
        [Comment("发货仓库名称")]
        public string WarehouseName { get; set; }

        [Comment("管理方式：0-数量管理 1-定数管理")]
        public int ProductManageType { get; set; }

        [MaxLength(36)]
        [Comment("制单人")]
        public string CreatorBy { get; set; }

        [MaxLength(200)]
        [Comment("退货原因")]
        public string ReturnReason { get; set; }
    }
}
